<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
<!-- QCtmMessageTipModel.cpp -->
  <meta name="description" content="消息提示model的一般实现.">
  <title>QCtmMessageTipModel Class | QCustomUi 1.16.0</title>
  <link rel="stylesheet" type="text/css" href="style/offline-simple.css" />
  <script type="text/javascript">
    document.getElementsByTagName("link").item(0).setAttribute("href", "style/offline.css");
    // loading style sheet breaks anchors that were jumped to before
    // so force jumping to anchor again
    setTimeout(function() {
        var anchor = location.hash;
        // need to jump to different anchor first (e.g. none)
        location.hash = "#";
        setTimeout(function() {
            location.hash = anchor;
        }, 0);
    }, 0);
  </script>
</head>
<body>
<div class="header" id="qtdocheader">
    <div class="main">
    <div class="main-rounded">
        <div class="navigationbar">
        <ul>
<li><a href="index.html" translate="no">QCustomUi 1.16.0</a></li>
<li><a href="qcustomui-module.html" translate="no">QCustomUi</a></li>
<li>QCtmMessageTipModel</li>
<li id="buildversion">QCustomUi 1.16.0 Reference Documentation</li>
    </ul>
    </div>
</div>
<div class="content">
<div class="line">
<div class="content mainContent">
<div class="sidebar">
<div class="toc">
<h3 id="toc">Contents</h3>
<ul>
<li class="level1"><a href="#properties">Properties</a></li>
<li class="level1"><a href="#public-functions">Public Functions</a></li>
<li class="level1"><a href="#reimplemented-public-functions">Reimplemented Public Functions</a></li>
<li class="level1"><a href="#details">Detailed Description</a></li>
</ul>
</div>
<div class="sidebar-content" id="sidebar-content"></div></div>
<h1 class="title" translate="no">QCtmMessageTipModel Class</h1>
<!-- $$$QCtmMessageTipModel-brief -->
<p>消息提示model的一般实现. <a href="#details">More...</a></p>
<!-- @@@QCtmMessageTipModel -->
<div class="table"><table class="alignedsummary" translate="no">
<tr><td class="memItemLeft rightAlign topAlign"> Header:</td><td class="memItemRight bottomAlign">  <span class="preprocessor">#include &lt;QCtmMessageTipModel.h&gt;</span></td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> Inherits:</td><td class="memItemRight bottomAlign"> <a href="qctmabstractmessagetipmodel.html" translate="no">QCtmAbstractMessageTipModel</a></td></tr>
</table></div>
<ul>
<li><a href="qctmmessagetipmodel-members.html">List of all members, including inherited members</a></li>
</ul>
<h2 id="properties">Properties</h2>
<ul>
<li class="fn" translate="no"><b><a href="qctmmessagetipmodel.html#timeColor-prop" translate="no">timeColor</a></b> : QColor</li>
<li class="fn" translate="no"><b><a href="qctmmessagetipmodel.html#titleColor-prop" translate="no">titleColor</a></b> : QColor</li>
</ul>
<h2 id="public-functions">Public Functions</h2>
<div class="table"><table class="alignedsummary" translate="no">
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qctmmessagetipmodel.html#QCtmMessageTipModel" translate="no">QCtmMessageTipModel</a></b>(QObject *<i>parent</i> = nullptr)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual </td><td class="memItemRight bottomAlign"><b><a href="qctmmessagetipmodel.html#dtor.QCtmMessageTipModel" translate="no">~QCtmMessageTipModel</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qctmmessagetipmodel.html#setTimeColor" translate="no">setTimeColor</a></b>(const QColor &amp;<i>color</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qctmmessagetipmodel.html#setTitleColor" translate="no">setTitleColor</a></b>(const QColor &amp;<i>color</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> const QColor &amp;</td><td class="memItemRight bottomAlign"><b><a href="qctmmessagetipmodel.html#timeColor" translate="no">timeColor</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> const QColor &amp;</td><td class="memItemRight bottomAlign"><b><a href="qctmmessagetipmodel.html#titleColor" translate="no">titleColor</a></b>() const</td></tr>
</table></div>
<h2 id="reimplemented-public-functions">Reimplemented Public Functions</h2>
<div class="table"><table class="alignedsummary" translate="no">
<tr><td class="memItemLeft rightAlign topAlign"> virtual int </td><td class="memItemRight bottomAlign"><b><a href="qctmmessagetipmodel.html#columnCount" translate="no">columnCount</a></b>(const QModelIndex &amp;<i>parent</i>) const override</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual QVariant </td><td class="memItemRight bottomAlign"><b><a href="qctmmessagetipmodel.html#data" translate="no">data</a></b>(const QModelIndex &amp;<i>index</i>, int <i>role</i>) const override</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual Qt::ItemFlags </td><td class="memItemRight bottomAlign"><b><a href="qctmmessagetipmodel.html#flags" translate="no">flags</a></b>(const QModelIndex &amp;<i>index</i>) const override</td></tr>
</table></div>
<!-- $$$QCtmMessageTipModel-description -->
<div class="descr">
<h2 id="details">Detailed Description</h2>
</div>
<p><b>See also </b><a href="qctmmessagetipdata.html" translate="no">QCtmMessageTipData</a>.</p>
<!-- @@@QCtmMessageTipModel -->
<div class="prop">
<h2>Property Documentation</h2>
<!-- $$$timeColor-prop$$$timeColor$$$setTimeColorconstQColor& -->
<h3 class="fn" translate="no" id="timeColor-prop"><span class="name">timeColor</span> : <span class="type"><a href="https://doc.qt.io/qt/qcolor.html" translate="no">QColor</a></span></h3>
<p>消息时间的文本颜色.</p>
<p><b>Access functions:</b></p>
<div class="table"><table class="alignedsummary" translate="no">
<tr><td class="memItemLeft topAlign rightAlign"> const QColor &amp;</td><td class="memItemRight bottomAlign"><span class="name"><b><a href="qctmmessagetipmodel.html#timeColor" translate="no">timeColor</a></b></span>() const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b><a href="qctmmessagetipmodel.html#setTimeColor" translate="no">setTimeColor</a></b></span>(const QColor &amp;<i>color</i>)</td></tr>
</table></div>
<p><b>See also </b><a href="qctmmessagetipmodel.html#setTimeColor" translate="no">setTimeColor</a> and <a href="qctmmessagetipmodel.html#timeColor" translate="no">timeColor</a>.</p>
<!-- @@@timeColor -->
<!-- $$$titleColor-prop$$$titleColor$$$setTitleColorconstQColor& -->
<h3 class="fn" translate="no" id="titleColor-prop"><span class="name">titleColor</span> : <span class="type"><a href="https://doc.qt.io/qt/qcolor.html" translate="no">QColor</a></span></h3>
<p>消息标题的文本颜色.</p>
<p><b>Access functions:</b></p>
<div class="table"><table class="alignedsummary" translate="no">
<tr><td class="memItemLeft topAlign rightAlign"> const QColor &amp;</td><td class="memItemRight bottomAlign"><span class="name"><b><a href="qctmmessagetipmodel.html#titleColor" translate="no">titleColor</a></b></span>() const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b><a href="qctmmessagetipmodel.html#setTitleColor" translate="no">setTitleColor</a></b></span>(const QColor &amp;<i>color</i>)</td></tr>
</table></div>
<p><b>See also </b><a href="qctmmessagetipmodel.html#setTitleColor" translate="no">setTitleColor</a> and <a href="qctmmessagetipmodel.html#titleColor" translate="no">titleColor</a>.</p>
<!-- @@@titleColor -->
</div>
<div class="func">
<h2>Member Function Documentation</h2>
<!-- $$$QCtmMessageTipModel[overload1]$$$QCtmMessageTipModelQObject* -->
<h3 class="fn" translate="no" id="QCtmMessageTipModel"><code class="details extra" translate="no">[explicit]</code> QCtmMessageTipModel::<span class="name">QCtmMessageTipModel</span>(<span class="type"><a href="https://doc.qt.io/qt/qobject.html#QObject" translate="no">QObject</a></span> *<i>parent</i> = nullptr)</h3>
<p>构造一个父对象为 <i translate="no">parent</i> 的消息model.</p>
<!-- @@@QCtmMessageTipModel -->
<!-- $$$~QCtmMessageTipModel[overload1]$$$~QCtmMessageTipModel -->
<h3 class="fn" translate="no" id="dtor.QCtmMessageTipModel"><code class="details extra" translate="no">[virtual noexcept]</code> QCtmMessageTipModel::<span class="name">~QCtmMessageTipModel</span>()</h3>
<p>销毁当前消息model对象.</p>
<!-- @@@~QCtmMessageTipModel -->
<!-- $$$columnCount[overload1]$$$columnCountconstQModelIndex& -->
<h3 class="fn" translate="no" id="columnCount"><code class="details extra" translate="no">[override virtual]</code> <span class="type">int</span> QCtmMessageTipModel::<span class="name">columnCount</span>(const <span class="type"><a href="https://doc.qt.io/qt/qmodelindex.html" translate="no">QModelIndex</a></span> &amp;<i>parent</i>) const</h3>
<p>Reimplements: <a href="https://doc.qt.io/qt/qabstractitemmodel.html#columnCount" translate="no">QAbstractItemModel::columnCount(const QModelIndex &amp;parent) const</a>.</p>
<!-- @@@columnCount -->
<!-- $$$data[overload1]$$$dataconstQModelIndex&int -->
<h3 class="fn" translate="no" id="data"><code class="details extra" translate="no">[override virtual]</code> <span class="type"><a href="https://doc.qt.io/qt/qvariant.html" translate="no">QVariant</a></span> QCtmMessageTipModel::<span class="name">data</span>(const <span class="type"><a href="https://doc.qt.io/qt/qmodelindex.html" translate="no">QModelIndex</a></span> &amp;<i>index</i>, <span class="type">int</span> <i>role</i>) const</h3>
<p>Reimplements: <a href="https://doc.qt.io/qt/qabstractitemmodel.html#data" translate="no">QAbstractItemModel::data(const QModelIndex &amp;index, int role) const</a>.</p>
<!-- @@@data -->
<!-- $$$flags[overload1]$$$flagsconstQModelIndex& -->
<h3 class="fn" translate="no" id="flags"><code class="details extra" translate="no">[override virtual]</code> <span class="type"><a href="https://doc.qt.io/qt/qt.html#ItemFlag-enum" translate="no">Qt::ItemFlags</a></span> QCtmMessageTipModel::<span class="name">flags</span>(const <span class="type"><a href="https://doc.qt.io/qt/qmodelindex.html" translate="no">QModelIndex</a></span> &amp;<i>index</i>) const</h3>
<p>Reimplements: <a href="https://doc.qt.io/qt/qabstracttablemodel.html#flags" translate="no">QAbstractTableModel::flags(const QModelIndex &amp;index) const</a>.</p>
<!-- @@@flags -->
<!-- $$$setTimeColor -->
<h3 class="fn" translate="no" id="setTimeColor"><span class="type">void</span> QCtmMessageTipModel::<span class="name">setTimeColor</span>(const <span class="type"><a href="https://doc.qt.io/qt/qcolor.html" translate="no">QColor</a></span> &amp;<i>color</i>)</h3>
<p>设置消息时间的文本颜色 <i translate="no">color</i>.</p>
<div class="admonition note"><p><b>Note: </b>Setter function for property <a href="qctmmessagetipmodel.html#timeColor" translate="no">timeColor</a>. </p>
</div><p><b>See also </b><a href="qctmmessagetipmodel.html#timeColor" translate="no">timeColor</a>().</p>
<!-- @@@setTimeColor -->
<!-- $$$setTitleColor -->
<h3 class="fn" translate="no" id="setTitleColor"><span class="type">void</span> QCtmMessageTipModel::<span class="name">setTitleColor</span>(const <span class="type"><a href="https://doc.qt.io/qt/qcolor.html" translate="no">QColor</a></span> &amp;<i>color</i>)</h3>
<p>设置消息标题的文本颜色 <i translate="no">color</i>.</p>
<div class="admonition note"><p><b>Note: </b>Setter function for property <a href="qctmmessagetipmodel.html#titleColor" translate="no">titleColor</a>. </p>
</div><p><b>See also </b><a href="qctmmessagetipmodel.html#titleColor" translate="no">titleColor</a>().</p>
<!-- @@@setTitleColor -->
<!-- $$$timeColor -->
<h3 class="fn" translate="no" id="timeColor">const <span class="type"><a href="https://doc.qt.io/qt/qcolor.html" translate="no">QColor</a></span> &amp;QCtmMessageTipModel::<span class="name">timeColor</span>() const</h3>
<p>返回消息时间的文本颜色.</p>
<div class="admonition note"><p><b>Note: </b>Getter function for property timeColor. </p>
</div><p><b>See also </b><a href="qctmmessagetipmodel.html#setTimeColor" translate="no">setTimeColor</a>.</p>
<!-- @@@timeColor -->
<!-- $$$titleColor -->
<h3 class="fn" translate="no" id="titleColor">const <span class="type"><a href="https://doc.qt.io/qt/qcolor.html" translate="no">QColor</a></span> &amp;QCtmMessageTipModel::<span class="name">titleColor</span>() const</h3>
<p>返回消息标题的文本颜色.</p>
<div class="admonition note"><p><b>Note: </b>Getter function for property titleColor. </p>
</div><p><b>See also </b><a href="qctmmessagetipmodel.html#setTitleColor" translate="no">setTitleColor</a>.</p>
<!-- @@@titleColor -->
</div>
        </div>
       </div>
   </div>
   </div>
</div>
<div class="footer">
   <p>
   <acronym title="Copyright">&copy;</acronym> QCustomUi
   Documentation contributions included herein are the copyrights of
   their respective owners.<br/>    The documentation provided herein is licensed under the terms of the    <a href="http://www.gnu.org/licenses/fdl.html">GNU Free Documentation    License version 1.3</a> as published by the Free Software Foundation.<br/> </div>
</body>
</html>
